package org.elec.mac.ehcache;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.ehcache.EhCacheCacheManager;
import org.springframework.stereotype.Component;


/**
 * Created by Bean on 2017/5/11.
 */
@Component
public class ManageEhCache {

    @Autowired
    private CacheConfiguration cacheConfiguration;

    public void cacheInit() {
        //
        EhCacheCacheManager cacheManager = cacheConfiguration
                .ehCacheCacheManager(cacheConfiguration.ehCacheManagerFactoryBean());
    }

}
